package study.springboot.validation.controller.login;

import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.springboot.validation.support.result.Result;
import study.springboot.validation.support.result.Results;

@Slf4j
@RestController
public class LoginController {

    @RequestMapping("/login")
    public Result login(@RequestBody @Validated LoginRequest request) {
        log.info("asdfasdfasd");
        return Results.ok();
    }
}
